package com.hawthorn.admin.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hawthorn.admin.repository.provider.SysLogSqlProvider;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>todo 日志管理</p>
 * @author: guohao | 2607728024@qq.com
–
 * @created: 2022/7/21 15:30
 * @version v1.0.1
 * @copyright: Copyright (c) 2022 guohao
 */
@Repository
public interface SysLogMapper extends DBMapper {
  @SelectProvider(type = SysLogSqlProvider.class)
  IPage<Map<String, Object>> selectLogInOperateLog(String conditions, Page<Map<String, Object>> page);

  @SelectProvider(type = SysLogSqlProvider.class)
  IPage<Map<String, Object>> selectOperationLog(String conditions, Page<Map<String, Object>> page);

  @SelectProvider(SysLogSqlProvider.class)
  List<Map<String, Object>> exportOperationLog(String headFields, String conditions);

  @SelectProvider(SysLogSqlProvider.class)
  List<Map<String, Object>> exportLogInOperateLog(String headFields, String conditions);

}
